package com.order;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableTransactionManagement(proxyTargetClass = true)//GCLIB代理事务
@EnableSwagger2Doc//开启Sagger2
@SpringBootApplication//自动化配置
@MapperScan(value = "com.order.mapper")
public class APP {
    public static void main(String[] args) {
     SpringApplication app =new SpringApplication(APP.class);
     app.setBannerMode(Banner.Mode.CONSOLE);
     app.run(args);
        System.out.println("sagger地址：http://localhost:8888/doc.html");
    }
}
